package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Purchaseorder;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 杨博文
 * @description 针对表【purchaseorder(采购订单)】的数据库操作Service
 * @createDate 2024-11-25 09:23:39
 */
public interface PurchaseorderService extends IService<Purchaseorder> {

    /**
     * 查询采购订单列表
     *
     * @param purchaseorder
     * @return
     */
    List<Purchaseorder> SelectOrderList(Purchaseorder purchaseorder);

    /**
     * 新增采购订单
     *
     * @param map
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertOrder(Map<String, Object> map);

    /**
     * 更新采购订单
     *
     * @param map
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdateOrder(Map<String, Object> map);

    /**
     * 删除采购订单
     *
     * @param id
     * @return
     */
    Boolean DeleteOrder(List<String> id);

}
